<template>
  <div>
    <el-radio-group v-model="radio1" fill="#777777">
      <el-radio-button
        :label="item"
        v-for="(item, index) in list"
        :key="index"
        @click.native="changeValue($event, item)"
      ></el-radio-button>
    </el-radio-group>
  </div>
</template>

<script>
export default {
  data() {
    return {
      radio1: "全部",
    };
  },
  props: ["list"],
  mounted() {},

  methods: {
    changeValue(e, i) {
      if (e.target.tagName != "INPUT") {
        return;
      }
      console.log(e.target.value, "aaaa");
      console.log(e, "eeessssse");
      this.$emit("changeBtnValue", e.target.value);
    },
  },
};
</script>

<style lang="scss" scoped>
::v-deep .is-active {
  background-color: red !important;
}
</style>